from django.contrib import admin
try:
	from models import *
except:
	from gardens.models import *

class GardenAdmin(admin.ModelAdmin):
	list_display = ('id', 'name', 'user','area_total' , 'conv_emiss', 'user_emiss', 'created', 'updated')

class UserAdmin(admin.ModelAdmin):
	list_display = ('id', 'username', 'email', 'date_joined', 'last_login')

class PhotoAdmin(admin.ModelAdmin):
	pass

class PlantAdmin(admin.ModelAdmin):
	pass
	
class LicenseAdmin(admin.ModelAdmin):
	pass
	

admin.site.register(Plant, PlantAdmin)
admin.site.register(Photo, PhotoAdmin)
admin.site.register(License, LicenseAdmin)
admin.site.register(Garden, GardenAdmin)
admin.site.unregister(User)
admin.site.register(User, UserAdmin)
